package sys.news.service;

import sys.news.pojo.Adver;

import java.util.List;

/**
 * 广告数据访问层
 */
public interface AdverService {
    /**
     * 添加广告
     * @param adver
     * @return
     */
    public boolean addAdver(Adver adver);

    /**
     * 删除广告
     * @param adver
     * @return
     */
    public boolean delAdver(Adver adver);

    /**
     * 通过id查询广告
     * @param aid
     * @return
     */
    public boolean getAdverByAid(int aid);

    /**
     * 查询所有广告
     * @return
     */
    public List<Adver> getAll();
}
